package midway.madness.post.article;

import midway.madness.post.PostObject;
import android.content.Context;
import android.content.Intent;

public class ArticleObject extends PostObject{

	public ArticleObject(Context pContext, int pId, String pAuthor, String pTitle, String pContent, String pDate, String pSlug, String[] pComments){
		super(pContext, pId, pAuthor, pTitle, pContent, pDate, pSlug, pComments);
	}
	
	@Override
	public void goForIntent() {
		Intent intent = new Intent(getContext(), ArticleActivity.class);
		intent.putExtra("title", getTitle());
		intent.putExtra("author", getAuthor());
		intent.putExtra("date", getDate());
		intent.putExtra("comments", getComments());
		intent.putExtra("content", getContent());
		intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
		getContext().startActivity(intent);
	}
	
}
